package com.xqls.dal.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RegisterExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RegisterExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSamplingIdIsNull() {
            addCriterion("sampling_id is null");
            return (Criteria) this;
        }

        public Criteria andSamplingIdIsNotNull() {
            addCriterion("sampling_id is not null");
            return (Criteria) this;
        }

        public Criteria andSamplingIdEqualTo(Integer value) {
            addCriterion("sampling_id =", value, "samplingId");
            return (Criteria) this;
        }

        public Criteria andSamplingIdNotEqualTo(Integer value) {
            addCriterion("sampling_id <>", value, "samplingId");
            return (Criteria) this;
        }

        public Criteria andSamplingIdGreaterThan(Integer value) {
            addCriterion("sampling_id >", value, "samplingId");
            return (Criteria) this;
        }

        public Criteria andSamplingIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sampling_id >=", value, "samplingId");
            return (Criteria) this;
        }

        public Criteria andSamplingIdLessThan(Integer value) {
            addCriterion("sampling_id <", value, "samplingId");
            return (Criteria) this;
        }

        public Criteria andSamplingIdLessThanOrEqualTo(Integer value) {
            addCriterion("sampling_id <=", value, "samplingId");
            return (Criteria) this;
        }

        public Criteria andSamplingIdIn(List<Integer> values) {
            addCriterion("sampling_id in", values, "samplingId");
            return (Criteria) this;
        }

        public Criteria andSamplingIdNotIn(List<Integer> values) {
            addCriterion("sampling_id not in", values, "samplingId");
            return (Criteria) this;
        }

        public Criteria andSamplingIdBetween(Integer value1, Integer value2) {
            addCriterion("sampling_id between", value1, value2, "samplingId");
            return (Criteria) this;
        }

        public Criteria andSamplingIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sampling_id not between", value1, value2, "samplingId");
            return (Criteria) this;
        }

        public Criteria andTenantNoIsNull() {
            addCriterion("tenant_no is null");
            return (Criteria) this;
        }

        public Criteria andTenantNoIsNotNull() {
            addCriterion("tenant_no is not null");
            return (Criteria) this;
        }

        public Criteria andTenantNoEqualTo(String value) {
            addCriterion("tenant_no =", value, "tenantNo");
            return (Criteria) this;
        }

        public Criteria andTenantNoNotEqualTo(String value) {
            addCriterion("tenant_no <>", value, "tenantNo");
            return (Criteria) this;
        }

        public Criteria andTenantNoGreaterThan(String value) {
            addCriterion("tenant_no >", value, "tenantNo");
            return (Criteria) this;
        }

        public Criteria andTenantNoGreaterThanOrEqualTo(String value) {
            addCriterion("tenant_no >=", value, "tenantNo");
            return (Criteria) this;
        }

        public Criteria andTenantNoLessThan(String value) {
            addCriterion("tenant_no <", value, "tenantNo");
            return (Criteria) this;
        }

        public Criteria andTenantNoLessThanOrEqualTo(String value) {
            addCriterion("tenant_no <=", value, "tenantNo");
            return (Criteria) this;
        }

        public Criteria andTenantNoLike(String value) {
            addCriterion("tenant_no like", value, "tenantNo");
            return (Criteria) this;
        }

        public Criteria andTenantNoNotLike(String value) {
            addCriterion("tenant_no not like", value, "tenantNo");
            return (Criteria) this;
        }

        public Criteria andTenantNoIn(List<String> values) {
            addCriterion("tenant_no in", values, "tenantNo");
            return (Criteria) this;
        }

        public Criteria andTenantNoNotIn(List<String> values) {
            addCriterion("tenant_no not in", values, "tenantNo");
            return (Criteria) this;
        }

        public Criteria andTenantNoBetween(String value1, String value2) {
            addCriterion("tenant_no between", value1, value2, "tenantNo");
            return (Criteria) this;
        }

        public Criteria andTenantNoNotBetween(String value1, String value2) {
            addCriterion("tenant_no not between", value1, value2, "tenantNo");
            return (Criteria) this;
        }

        public Criteria andBottleIdIsNull() {
            addCriterion("bottle_id is null");
            return (Criteria) this;
        }

        public Criteria andBottleIdIsNotNull() {
            addCriterion("bottle_id is not null");
            return (Criteria) this;
        }

        public Criteria andBottleIdEqualTo(Integer value) {
            addCriterion("bottle_id =", value, "bottleId");
            return (Criteria) this;
        }

        public Criteria andBottleIdNotEqualTo(Integer value) {
            addCriterion("bottle_id <>", value, "bottleId");
            return (Criteria) this;
        }

        public Criteria andBottleIdGreaterThan(Integer value) {
            addCriterion("bottle_id >", value, "bottleId");
            return (Criteria) this;
        }

        public Criteria andBottleIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("bottle_id >=", value, "bottleId");
            return (Criteria) this;
        }

        public Criteria andBottleIdLessThan(Integer value) {
            addCriterion("bottle_id <", value, "bottleId");
            return (Criteria) this;
        }

        public Criteria andBottleIdLessThanOrEqualTo(Integer value) {
            addCriterion("bottle_id <=", value, "bottleId");
            return (Criteria) this;
        }

        public Criteria andBottleIdIn(List<Integer> values) {
            addCriterion("bottle_id in", values, "bottleId");
            return (Criteria) this;
        }

        public Criteria andBottleIdNotIn(List<Integer> values) {
            addCriterion("bottle_id not in", values, "bottleId");
            return (Criteria) this;
        }

        public Criteria andBottleIdBetween(Integer value1, Integer value2) {
            addCriterion("bottle_id between", value1, value2, "bottleId");
            return (Criteria) this;
        }

        public Criteria andBottleIdNotBetween(Integer value1, Integer value2) {
            addCriterion("bottle_id not between", value1, value2, "bottleId");
            return (Criteria) this;
        }

        public Criteria andDeviceNoIsNull() {
            addCriterion("device_no is null");
            return (Criteria) this;
        }

        public Criteria andDeviceNoIsNotNull() {
            addCriterion("device_no is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceNoEqualTo(String value) {
            addCriterion("device_no =", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoNotEqualTo(String value) {
            addCriterion("device_no <>", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoGreaterThan(String value) {
            addCriterion("device_no >", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoGreaterThanOrEqualTo(String value) {
            addCriterion("device_no >=", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoLessThan(String value) {
            addCriterion("device_no <", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoLessThanOrEqualTo(String value) {
            addCriterion("device_no <=", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoLike(String value) {
            addCriterion("device_no like", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoNotLike(String value) {
            addCriterion("device_no not like", value, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoIn(List<String> values) {
            addCriterion("device_no in", values, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoNotIn(List<String> values) {
            addCriterion("device_no not in", values, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoBetween(String value1, String value2) {
            addCriterion("device_no between", value1, value2, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andDeviceNoNotBetween(String value1, String value2) {
            addCriterion("device_no not between", value1, value2, "deviceNo");
            return (Criteria) this;
        }

        public Criteria andSamplingManIsNull() {
            addCriterion("sampling_man is null");
            return (Criteria) this;
        }

        public Criteria andSamplingManIsNotNull() {
            addCriterion("sampling_man is not null");
            return (Criteria) this;
        }

        public Criteria andSamplingManEqualTo(String value) {
            addCriterion("sampling_man =", value, "samplingMan");
            return (Criteria) this;
        }

        public Criteria andSamplingManNotEqualTo(String value) {
            addCriterion("sampling_man <>", value, "samplingMan");
            return (Criteria) this;
        }

        public Criteria andSamplingManGreaterThan(String value) {
            addCriterion("sampling_man >", value, "samplingMan");
            return (Criteria) this;
        }

        public Criteria andSamplingManGreaterThanOrEqualTo(String value) {
            addCriterion("sampling_man >=", value, "samplingMan");
            return (Criteria) this;
        }

        public Criteria andSamplingManLessThan(String value) {
            addCriterion("sampling_man <", value, "samplingMan");
            return (Criteria) this;
        }

        public Criteria andSamplingManLessThanOrEqualTo(String value) {
            addCriterion("sampling_man <=", value, "samplingMan");
            return (Criteria) this;
        }

        public Criteria andSamplingManLike(String value) {
            addCriterion("sampling_man like", value, "samplingMan");
            return (Criteria) this;
        }

        public Criteria andSamplingManNotLike(String value) {
            addCriterion("sampling_man not like", value, "samplingMan");
            return (Criteria) this;
        }

        public Criteria andSamplingManIn(List<String> values) {
            addCriterion("sampling_man in", values, "samplingMan");
            return (Criteria) this;
        }

        public Criteria andSamplingManNotIn(List<String> values) {
            addCriterion("sampling_man not in", values, "samplingMan");
            return (Criteria) this;
        }

        public Criteria andSamplingManBetween(String value1, String value2) {
            addCriterion("sampling_man between", value1, value2, "samplingMan");
            return (Criteria) this;
        }

        public Criteria andSamplingManNotBetween(String value1, String value2) {
            addCriterion("sampling_man not between", value1, value2, "samplingMan");
            return (Criteria) this;
        }

        public Criteria andSamplingTimeIsNull() {
            addCriterion("sampling_time is null");
            return (Criteria) this;
        }

        public Criteria andSamplingTimeIsNotNull() {
            addCriterion("sampling_time is not null");
            return (Criteria) this;
        }

        public Criteria andSamplingTimeEqualTo(Date value) {
            addCriterion("sampling_time =", value, "samplingTime");
            return (Criteria) this;
        }

        public Criteria andSamplingTimeNotEqualTo(Date value) {
            addCriterion("sampling_time <>", value, "samplingTime");
            return (Criteria) this;
        }

        public Criteria andSamplingTimeGreaterThan(Date value) {
            addCriterion("sampling_time >", value, "samplingTime");
            return (Criteria) this;
        }

        public Criteria andSamplingTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("sampling_time >=", value, "samplingTime");
            return (Criteria) this;
        }

        public Criteria andSamplingTimeLessThan(Date value) {
            addCriterion("sampling_time <", value, "samplingTime");
            return (Criteria) this;
        }

        public Criteria andSamplingTimeLessThanOrEqualTo(Date value) {
            addCriterion("sampling_time <=", value, "samplingTime");
            return (Criteria) this;
        }

        public Criteria andSamplingTimeIn(List<Date> values) {
            addCriterion("sampling_time in", values, "samplingTime");
            return (Criteria) this;
        }

        public Criteria andSamplingTimeNotIn(List<Date> values) {
            addCriterion("sampling_time not in", values, "samplingTime");
            return (Criteria) this;
        }

        public Criteria andSamplingTimeBetween(Date value1, Date value2) {
            addCriterion("sampling_time between", value1, value2, "samplingTime");
            return (Criteria) this;
        }

        public Criteria andSamplingTimeNotBetween(Date value1, Date value2) {
            addCriterion("sampling_time not between", value1, value2, "samplingTime");
            return (Criteria) this;
        }

        public Criteria andCodIsNull() {
            addCriterion("cod is null");
            return (Criteria) this;
        }

        public Criteria andCodIsNotNull() {
            addCriterion("cod is not null");
            return (Criteria) this;
        }

        public Criteria andCodEqualTo(Double value) {
            addCriterion("cod =", value, "cod");
            return (Criteria) this;
        }

        public Criteria andCodNotEqualTo(Double value) {
            addCriterion("cod <>", value, "cod");
            return (Criteria) this;
        }

        public Criteria andCodGreaterThan(Double value) {
            addCriterion("cod >", value, "cod");
            return (Criteria) this;
        }

        public Criteria andCodGreaterThanOrEqualTo(Double value) {
            addCriterion("cod >=", value, "cod");
            return (Criteria) this;
        }

        public Criteria andCodLessThan(Double value) {
            addCriterion("cod <", value, "cod");
            return (Criteria) this;
        }

        public Criteria andCodLessThanOrEqualTo(Double value) {
            addCriterion("cod <=", value, "cod");
            return (Criteria) this;
        }

        public Criteria andCodIn(List<Double> values) {
            addCriterion("cod in", values, "cod");
            return (Criteria) this;
        }

        public Criteria andCodNotIn(List<Double> values) {
            addCriterion("cod not in", values, "cod");
            return (Criteria) this;
        }

        public Criteria andCodBetween(Double value1, Double value2) {
            addCriterion("cod between", value1, value2, "cod");
            return (Criteria) this;
        }

        public Criteria andCodNotBetween(Double value1, Double value2) {
            addCriterion("cod not between", value1, value2, "cod");
            return (Criteria) this;
        }

        public Criteria andNh3IsNull() {
            addCriterion("nh3 is null");
            return (Criteria) this;
        }

        public Criteria andNh3IsNotNull() {
            addCriterion("nh3 is not null");
            return (Criteria) this;
        }

        public Criteria andNh3EqualTo(Double value) {
            addCriterion("nh3 =", value, "nh3");
            return (Criteria) this;
        }

        public Criteria andNh3NotEqualTo(Double value) {
            addCriterion("nh3 <>", value, "nh3");
            return (Criteria) this;
        }

        public Criteria andNh3GreaterThan(Double value) {
            addCriterion("nh3 >", value, "nh3");
            return (Criteria) this;
        }

        public Criteria andNh3GreaterThanOrEqualTo(Double value) {
            addCriterion("nh3 >=", value, "nh3");
            return (Criteria) this;
        }

        public Criteria andNh3LessThan(Double value) {
            addCriterion("nh3 <", value, "nh3");
            return (Criteria) this;
        }

        public Criteria andNh3LessThanOrEqualTo(Double value) {
            addCriterion("nh3 <=", value, "nh3");
            return (Criteria) this;
        }

        public Criteria andNh3In(List<Double> values) {
            addCriterion("nh3 in", values, "nh3");
            return (Criteria) this;
        }

        public Criteria andNh3NotIn(List<Double> values) {
            addCriterion("nh3 not in", values, "nh3");
            return (Criteria) this;
        }

        public Criteria andNh3Between(Double value1, Double value2) {
            addCriterion("nh3 between", value1, value2, "nh3");
            return (Criteria) this;
        }

        public Criteria andNh3NotBetween(Double value1, Double value2) {
            addCriterion("nh3 not between", value1, value2, "nh3");
            return (Criteria) this;
        }

        public Criteria andPhIsNull() {
            addCriterion("ph is null");
            return (Criteria) this;
        }

        public Criteria andPhIsNotNull() {
            addCriterion("ph is not null");
            return (Criteria) this;
        }

        public Criteria andPhEqualTo(Double value) {
            addCriterion("ph =", value, "ph");
            return (Criteria) this;
        }

        public Criteria andPhNotEqualTo(Double value) {
            addCriterion("ph <>", value, "ph");
            return (Criteria) this;
        }

        public Criteria andPhGreaterThan(Double value) {
            addCriterion("ph >", value, "ph");
            return (Criteria) this;
        }

        public Criteria andPhGreaterThanOrEqualTo(Double value) {
            addCriterion("ph >=", value, "ph");
            return (Criteria) this;
        }

        public Criteria andPhLessThan(Double value) {
            addCriterion("ph <", value, "ph");
            return (Criteria) this;
        }

        public Criteria andPhLessThanOrEqualTo(Double value) {
            addCriterion("ph <=", value, "ph");
            return (Criteria) this;
        }

        public Criteria andPhIn(List<Double> values) {
            addCriterion("ph in", values, "ph");
            return (Criteria) this;
        }

        public Criteria andPhNotIn(List<Double> values) {
            addCriterion("ph not in", values, "ph");
            return (Criteria) this;
        }

        public Criteria andPhBetween(Double value1, Double value2) {
            addCriterion("ph between", value1, value2, "ph");
            return (Criteria) this;
        }

        public Criteria andPhNotBetween(Double value1, Double value2) {
            addCriterion("ph not between", value1, value2, "ph");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}